
#ifndef __KB_H
#define __KB_H


#include <lpc2292.h>

#define PRESS_DELAY_MS  100
#define KB_ERROR                0x10
#define KB_NOT_PRESSED  0x20

#define KB_1    0x0
#define KB_2    0x1
#define KB_3    0x2
#define KB_A    0x3
#define KB_4    0x4
#define KB_5    0x5
#define KB_6    0x6
#define KB_B    0x7
#define KB_7    0x8
#define KB_8    0x9
#define KB_9    0xA
#define KB_C    0xB
#define KB_STAR 0xC
#define KB_0    0xD
#define KB_DIES 0xE
#define KB_D    0xF

/*
*       ii?aoeaaao eeaao e aica?auaao char eia eeaaeoe
*/
extern char readKey(void);                                      //      

/*
*       char eia ia?aoie eeaaeoe
*/
extern char key(void);                                          

/*
*       eia ia?aoie eeaaeoe
*/
extern char keyCode(void);

/*
*       ia?aoa ee eeaaeoa
*/
extern int keyPressed(void);

#endif